﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.IO;

namespace HYFamilyLibDataManager
{
	public interface IFamilyFileTable
	{
		bool Add(DbFamily family, FileInfo fi, DbTransaction tr);

		bool Remove(DbFamily family, DbTransaction tr);

		FileInfo this[DbFamily Family]
		{
			get;
		}

		bool Replace(DbFamily family, FileInfo fi);

		Dictionary<string, Dictionary<string, byte[]>> GetAllFileInfos();

		bool Replace(string guid, byte[] fileBytes);
	}
}
